package iedcyt.acute.controller.listeners.sign;

import iedcyt.acute.model.AuthorMergeModel;
import iedcyt.acute.model.SignModel;
import iedcyt.acute.view.AuthorMergeView;
import iedcyt.acute.view.SignView;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class DocumentsSelectionListener implements Listener {

	private SignModel _model;
	private SignView _view;
	
	public DocumentsSelectionListener(SignView view, SignModel model) {
		this._model = model;
		this._view = view;
	}
	
	public void handleEvent(Event event) {
		Integer idDoc = _view.getSelectedDocID();
		_model.setSelected_IdDoc(idDoc);
	}
}
